package com.sdkdjn.service;

import java.util.List;

import com.sdkdjn.pojo.AccessRecord;
import com.sdkdjn.pojo.Student;
import com.sdkdjn.utils.IEGResult;
import com.sdkdjn.utils.PageBean;

/**
 * 智能门禁系统Service接口
 * @ClassName: IIEGService  
 * @Description: TODO  
 * @author xiaoshengfu(2439323118@qq.com)  
 * @date: 2018年5月24日 下午7:44:04
 */
public interface IIEGService {

	public void studentAccess(AccessRecord accessRecord);

	public PageBean<Student> studentList(int pageNum, int limit, String sort, String order, String search);

	public IEGResult addStudent(Student student);
	
	public IEGResult updateStudent(Student student);
	
	public IEGResult deleteStudent(Long id);

	public PageBean<AccessRecord> accessRecordList(int pageNum, int limit, String sort, String order, String search);

	public IEGResult managerLogin(String telephone, String password);

	public IEGResult controlIEG(Integer state);

	public IEGResult findStudentByStudentId(Long studentId);

	public List<AccessRecord> getAccessRecordList(Integer time, Integer buildingNumber, Integer state);

	public AccessRecord findAccessRecordById(Long id);
}
